﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using XMLGener.Data;

namespace XMLGener.Utils
{
    /// <summary>
    /// Parser - .. mozno nepouzijem
    /// </summary>
    public class XMLGenerParser
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="fileName"></param>
        /// <returns></returns>
        public static XMLGenerDocument LoadFromFile(String fileName)
        {
            XMLGenerDocument result = new XMLGenerDocument();

            return result;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="attrName"></param>
        /// <param name="attrValue"></param>
        /// <param name="xmlEle"></param>
        public static void setAttribute(String attrName,String attrValue,XmlElement xmlEle)
        {
            if (xmlEle.HasAttribute(attrName))
            {

            }
            else 
            {
                
            }
        }

        /*// <summary>
        /// Parsing util function used for 
        /// </summary>
        /// <param name="node"></param>
        /// <param name="parent"></param>
        /// <returns></returns>
        
        public static XMLGenerNode xmlToGenerNode(XmlElement node,XMLGenerElement parent)
        {
            XMLGenerNode result = null;
            
            if (node.Name == XMLGenerNode.XATTRIBUTE_STR)
            {
                return new XMLGenerAttribute(parent,node);
            }
            return result;
            
        }*/

    }
}
